<?php
/*
 * Class designed to model the databases table 'Subject'
 */
class Subject{
    //Attributes
    
    //Subjects uniquely assigned code
    private $code;
    //Subjects name
    private $name;
    
    //Methods
    
    //Builds an object without information in it
    public function __construct(){
        $this->code = '';
        $this->name = '';
    }
    
    //List of getters
    public function getCode(){return $this->code;}
    public function getName(){return $this->name;}
    
    //List of setters
    public function setCode($a){$this->code = $a;}
    public function setName($a){$this->name = $a;}
}
?>